package com.sc.nft.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.OrderStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class SecondOverdueOrderDetailsVO {

    @ApiModelProperty("1级标题")
    private String firstTitle;

    @ApiModelProperty("编号")
    private String serialNumber;

    @ApiModelProperty("缩略图")
    private String creationContent;

    @ApiModelProperty("等级名称")
    private String levelName;

    @ApiModelProperty("售出价格")
    private String buyPrice;

    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("下单时间")
    private String createTime;

    @ApiModelProperty("售出人名字")
    private String salesUserName;

    @ApiModelProperty("购买人名字")
    private String buyUserName;

    @ApiModelProperty("订单编号")
    private String orderId;

    @ApiModelProperty("订单状态")
    private OrderStatusEnum status;

    @ApiModelProperty("取消时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date realCloseTime;


    public void setBuyPrice(BigDecimal buyPrice) {
        this.buyPrice = buyPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }


}
